<template>
    <div id="app">
    <router-view/>
    <loading v-show="globalLoading"/>
  </div>
</template>
<script>
import Loading from './components/Loading/index.vue'
import { mapState } from 'vuex' // 引入vuex状态管理，mapState管理中存在全局loading
export default {
   components: {
    Loading
  },
  computed: {
    // 全局 loading
		...mapState([
			'globalLoading'
		])
	}
}
</script>
<style lang="scss">
  html,body {
		margin: 0;
		padding: 0;
    width: 100%;
    height: 100%;
    #app{
      width: 100%;
      height: 100%;
      margin: 0;
		  padding: 0;
    }
    *{
      margin:0;
      padding:0;
    }
    
	}
</style>
